package com.xmindguoguo.boot.modular.system.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.xmindguoguo.boot.modular.system.dao.TSystemUserDao;
import com.xmindguoguo.boot.modular.system.model.TSystemUserModel;
import com.xmindguoguo.boot.modular.system.service.ITSystemUserService;

/**
 * Service
 *
 * @author xmind-果果
 * @Date 2018-11-11 22:45
 */
@Service
@Transactional
public class TSystemUserServiceImpl extends ServiceImpl<TSystemUserDao, TSystemUserModel> implements ITSystemUserService {
    @Autowired
    TSystemUserDao systemUserDao;

    @Override
    public TSystemUserModel getByAccount(String account) {
        Wrapper<TSystemUserModel> wrapper = new EntityWrapper<>();
        wrapper.eq("account", account);
        return this.selectOne(wrapper);
    }

}
